package com.open.capacity.oss.model;

import com.open.capacity.common.web.CodeEnum;

import java.io.Serializable;
import java.util.List;

/**
 * @program: open-capacity-platform
 * @description:
 * @author: bellweather
 * @create: 2021-01-21 10:11
 **/
public class WangEditorModel implements Serializable {

    private int errno;
    private List<String> data;

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    public List<String> getData() {
        return data;
    }

    public void setData(List<String> data) {
        this.data = data;
    }

    private WangEditorModel(CodeEnum errno, List<String> data) {
        this.errno=errno.getCode();
        this.data=data;
    }

    public static WangEditorModel successed(List<String> list){
        return  new WangEditorModel(CodeEnum.SUCCESS,list);
    }
}
